    /**Twenn折线绘制 */
    // var tm = new TimelineLite();
    // tm.add(
    //     myTween = TweenMax.fromTo("#path", path_line / speed, {
    //         drawSVG: "10",
    //     }, {
    //         drawSVG: "0 100%",
    //         ease: Linear.easeNone,
    //         onComplete: function () {
    //             // $("body").append($panels);
    //             alert("抵达终点");
    //         }
    //     }))
    // // myTween.yoyo(true).repeat(-1);
    // tm.play();
    // $("#pausTween").click(function () {
    //     tm.pause();
    // });
    // $("#resuTween").click(function () {
    //     tm.resume();
    // });
//-----------------------------------------------
    /**产生随机数 */
function getRandomNumberByRange(start, end) {
    return Math.floor(Math.random() * (end - start) + start)
}

/**利用随机数模拟人员到达的测点 */
function randomSide() {
    for (var i = 0; i < 10; i++) {
        /** 需要增加对象的基本属性*/
        var $sides = $('#box checked');
        var $sides = $('<div id="box" class="box_checked"></div>');
        /** 随机产生点的坐标*/
        cx[sideNum] = parseInt(getRandomNumberByRange(100, 1440));
        cy[sideNum] = parseInt(getRandomNumberByRange(100, 900));
        var clientX = cx[sideNum] + "px";
        var clientY = cy[sideNum] + "px";
        /** 在BODY中增加对象，并修改其坐标*/
        $("body").append($sides);
        $sides.text("点" + sideNum).css({
            position: 'absolute',
            top: clientY,
            left: clientX
        });
        /** 计算并存储两点间的距离以及所需事件*/
        besideLength[sideNum] = Math.sqrt(Math.pow((cx[sideNum] - cx[sideNum - 1]), 2) + Math.pow((cy[sideNum] - cy[sideNum - 1]), 2));
        var sideNum1 = sideNum - 1;
        besideTime[sideNum1] = parseInt(besideLength[sideNum] / 200);
        /** 坐标个数加一*/
        sideNum = sideNum + 1;
    }
}


/** 进行路径动画*/
function startWay() {
    //sideLines 为获取到的坐标字符串
    var str1 = sideLines.split(" ");
    console.log(sideLines);
    console.log(str1);

    for (var i = 0; i < str1.length; i++) {
        var str2 = str1[i].split(",");
        cx[i] = str2[0];
        cy[i] = str2[1];
        console.log("x[" + i + "]=" + cx[i] + ";y[" + i + "]=" + cy[i]);
    }

    var $circle = $('#box_0');
    var $circle = $('<circle id="box_0" stroke-width="2" fill="red" stroke="black" r="10" cx="10" cy="10"/>');
    $("svg").append($circle);

    /** 修改文字*/
    panel = document.getElementById("panel");
    endfunction = function () {
        panel.innerHTML = '抵达终点';
    }

    /** 新建动画时间轴*/
    var tl = new TimelineLite();
    for (var i = 0; i < str1.length - 1; i++) {
        var j = i + 1;
        /** 增加点与点之间的动画*/
        tl.add(
            TweenMax.fromTo('#box_0', 0.1, {
                x: cx[i] - 50,
                y: cy[i] - 50,
                opcaity: 1
            }, {
                x: cx[j] - 50,
                y: cy[j] - 50
            }));
    }
    tl.add(endfunction);

    /** 播放动画*/
    tl.play();
}

/** 选择后修改点的CLASS名和值*/
// function checkTrue(obj) {
// console.log(obj);
// console.log(obj.getAttribute("id"));
// var side = $("div").filter(".box_checked");
// console.log(side.length);
// if (side.length == 0) {
// obj.innerHTML = "选择";
// obj.className = "box_checked";
//     var sidey = $('#' + obj.getAttribute("id")).css("top");
//     var sidex = $('#' + obj.getAttribute("id")).css("left");
//     cx[1] = parseInt(sidex);
//     cy[1] = parseInt(sidey);
// } else {
//     obj.innerHTML = "选择";
//     obj.className = "box_checked " + side.length;
//     var sidey = $('#' + obj.getAttribute("id")).css("top");
//     var sidex = $('#' + obj.getAttribute("id")).css("left");
//     cx[side.length + 1] = parseInt(sidex);
//     cy[side.length + 1] = parseInt(sidey);
// console.log("x[" + side.length + 1 + "]=" + cx[side.length + 1] + ";y[" + side.length + 1 + "]=" + cy[side.length + 1]);
// }
// }